import service from '@/utils/request'

export function getTaskReport (params) {
  return service({
    url: '/projectReport/pageQueryProjectReport',
    method: 'get',
    params
  })
}

//更改项目报告删除状态。返回更新后的状态。1-刪除，0-正常
export function updateTaskReport (projectReportFileId) {
  return service({
    url: `/projectReport/changeStatus/${projectReportFileId}`,
    method: 'post',
  })
}

//上传项目报告
export function uploadProject(data){
  return service({
    url: '/projectReport/addProjectReport',
    method: 'post',
    data: data
  })
}

//获取阿里云文件路径
export function commonOssFileUrl (data) {
  return service({
    url: '/common/genOssFileUrl',
    method: 'post',
    data
  })
}

//获取阿里云文件配置信息
export function getOssConfig (data) {
  return service({
    url: '/common/getOssConfig',
    method: 'get',
    data
  })
}